import api from '@/libs/request'
/**
 * 打印机信息新增
 * @param {string} deviceNo
 * @param {string} printName
 */
export const doAddPrint = (deviceNo: string, printName: string) => {
    return api.post('gruul-mall-freight/logistics/print/save', { deviceNo, printName })
}
/**
 * 打印机信息修改
 * @param {string} deviceNo
 * @param {string} printName
 * @param {string} id
 */
export const doUpdatePrint = (deviceNo: string, printName: string, id: string) => {
    return api.post('gruul-mall-freight/logistics/print/update', { deviceNo, printName, id })
}
/**
 * 打印机列表
 * @param {*} data
 */
export const doGetPrintList = (params) => {
    return api.get('gruul-mall-freight/logistics/print/list', params)
}
/**
 * 打印机删除
 * @param {*} id
 */
export const doDelPrintById = (id: string) => {
    return api.del(`gruul-mall-freight/logistics/print/del/${id}`)
}
